package com.shop.loan.model;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.Erupt;
import xyz.erupt.annotation.EruptField;
import xyz.erupt.annotation.sub_field.Edit;
import xyz.erupt.annotation.sub_field.EditType;
import xyz.erupt.annotation.sub_field.View;
import xyz.erupt.upms.helper.HyperModelCreatorVo;

import javax.persistence.Entity;
import javax.persistence.Table;

@Setter
@Getter
@Erupt(
        name = "公告列表",
        orderBy = "id desc"
)
@Table(name = "s_notice")
@Entity
public class Notice extends HyperModelCreatorVo {


    @EruptField(
            views = @View(title = "内容"),
            edit = @Edit(
                    title = "内容",
                    type = EditType.TEXTAREA,
                    notNull = true
            )
    )
    private String content;

}